package gizmoball;

import java.awt.Graphics;

public class Brick
{
	//The position of brick
	public int brickx;
	public int bricky;
	public int direction;//0 is up, 90 is right, 180 is down, 270 is left
	public int bump;//The valuable bump is a signal of judging if a bump has happened
	public int property;//0 is breakable, 1 is fixed, 2 is movable
	
	public Brick(int x,int y)
	{
		this.brickx = x;
		this.bricky = y;
		this.bump = 1;
		this.property = 0;
		this.direction = 0;
	}
	
	public Brick(int x,int y, int p, int d)
	{
		this.brickx = x;
		this.bricky = y;
		this.bump = 1;
		this.property = p;
		this.direction = d;
	}

	public Brick(Brick b)
	{
		this.brickx = b.brickx;
		this.bricky = b.bricky;
		this.bump = b.bump;
		this.direction = b.direction;
		this.property = b.property;
	}
	

	public int getBrickx() {
		return brickx;
	}

	public void setBrickx(int brickx) {
		this.brickx = brickx;
	}

	public int getBricky() {
		return bricky;
	}

	public void setBricky(int bricky) {
		this.bricky = bricky;
	}

	public int getProperty() 
	{
		return property;
	}
	
	public void setProperty(int property) {
		this.property = property;
	}

	public void paint(Graphics g){
		
	}
	
	public void rotation(){
		
	}
	
	public void large(){
		
	}
	
	public void small(){
		
	}
	
	public int judge(int x,int y,int radius)
	{
		return -1;
	}
	
	public int judge (int x,int y){
		return -1;
	}
}